package com.zhaolixiang.view.animation13

import android.graphics.drawable.Drawable
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val lists=ArrayList<Drawable>()
        lists.add(resources.getDrawable(R.mipmap.ic_launcher))
        lists.add(resources.getDrawable(R.mipmap.ic_launcher))
        lists.add(resources.getDrawable(R.mipmap.ic_launcher))

        val adapter=ListAdapter(lists,200,this,listView)
        listView.adapter=adapter

    }
}
